﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="EWebsite.Category" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">    
    <asp:ListView ID="listViewProducts" runat="server" ItemPlaceholderID="ProductItem">
        <ItemTemplate>
            <div class="product-item">
            <asp:HyperLink ID="HyperLink1" runat="server" 
                ImageUrl='<%# Eval("ProductPhotoURL") %>' 
                NavigateUrl='<%# Eval("ProductID", "/Product.aspx?p={0}") %>'></asp:HyperLink>            
                <div class="right-content">
                    <h4>
                        <asp:HyperLink ID="HyperLink2" runat="server"
                        NavigateUrl='<%# Eval("ProductID", "/Product.aspx?p={0}") %>'><%# Eval("ProductName") %></asp:HyperLink>
                    </h4>
                    <div class="des"><%# Eval("ProductDescription") %></div>
                </div>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
            <asp:PlaceHolder ID="ProductItem" runat="server"></asp:PlaceHolder>
        </LayoutTemplate>
    </asp:ListView>
    <asp:DataPager ID="DataPagerProducts" runat="server" PagedControlID="listViewProducts"
        PageSize="10" OnPreRender="DataPagerProducts_PreRender">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False" />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>
</asp:Content>
